jQuery(window).load(function() { jQuery('.socialNetworkTwitter').show(); if( jQuery('.socialNetworkHolder').length > 0) { jQuery('.socialNetworkHolder').tabs(); }; if (jQuery.browser.webkit){ sameHeight(jQuery(".SameHeightHolder")); childSameHeight(jQuery(".childSameHeightHolder")); } }); jQuery(document).ready(function() { var $actionLink = jQuery('.sWebTheme_showSettings'); $actionLink.click( function() { jQuery('.sWebTheme_Actions').slideToggle(300, changeText); }); function changeText(){ if(!jQuery('.sWebTheme_Actions').is(":visible")){ $actionLink.text('Show Settings'); $actionLink.removeClass('expandedSettings'); createCookie("HomeOptionIsHidden", "true", 1); } else { $actionLink.text('Hide Settings'); $actionLink.addClass('expandedSettings'); eraseCookie("HomeOptionIsHidden"); } } if (!jQuery.browser.webkit){ sameHeight(jQuery(".SameHeightHolder")); childSameHeight(jQuery(".childSameHeightHolder")); } if ( $.browser.msie && jQuery(".sWebTheme_ActionsHolder:visible").length > 0 ){ var calcWidth = 0; jQuery(".sWebTheme_ActionsHolder").children().each( function(){ if( jQuery(this).hasClass("clear-both") ) return; calcWidth = calcWidth + jQuery(this).innerWidth() + parseInt(jQuery(this).css("margin-right")) + parseInt(jQuery(this).css("margin-left")); }); if ( calcWidth > jQuery(".sWebTheme_Actions").width() ){ jQuery(".sWebTheme_ActionsHolder").width(jQuery(".sWebTheme_Actions").width()); } else { jQuery(".sWebTheme_ActionsHolder").width(calcWidth).css({"margin":"auto"}); } } }); function sameHeight(element){ jQuery(element).each(function() { var height = 0; jQuery(".SameHeight", this).each(function() { var $this = jQuery(this); if ($this.height() > height) height = $this.height(); }).css("height", height); }); } function childSameHeight(element){ jQuery(element).each(function() { var height = 0; jQuery(".childSameHeight", this).each(function() { var $this = jQuery(this); if ($this.height() > height) height = $this.height(); }).css("height", height); }); } //creating completed popup jQuery(document).ready(function(){ var warning = jQuery(".hasWarning"); if ( warning.length > 0 ){ warning.each(function(){ var $this = jQuery(this); $this.css({"position":"relative", "z-index": 1}); $this.append('